//
//  UIScrollView+NRWRefresh.h
//  NRWMall
//
//  Created by 邢毅 on 2018/5/16.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MJRefresh/MJRefresh.h>

@interface UIScrollView (NRWRefresh)

- (void)addHeaderRefreshWithTarget:(id)target action:(SEL)action;

- (void)addFooterRefreshWithTarget:(id)target action:(SEL)action;

- (void)endRefresh;

/**
 添加浮层

 @param title 文字信息
 @param imageName 图片名字
 @param margin 文字与图片的间隔
 @param canScroll 是否让scrollView 滚动
 */
- (void)showMaskViewWithTitle:(NSString *)title imageName:(NSString *)imageName titleToImageMargin:(CGFloat)margin canScroll:(BOOL)canScroll didClick:(void(^)(void))didClick;

- (void)showEmptyMaskViewWithClickBlock:(void(^)(void))didClick;

- (void)removeMaskView;

@end
